package com.hopu.controller;

import com.hopu.entity.VideoExt;
import com.hopu.service.IVideoService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/video")
public class VideoController {

    @Resource
    private IVideoService videoService;

    /**
     * 获取视频实体列表
     * @return
     */
    @PostMapping
    public List<VideoExt> getVideoList()
    {
        return videoService.getVideoList();
    }

}
